package com.changgou.bean;

import java.io.Serializable;
import java.util.List;

public class PageResult implements Serializable {

    private static final long serialversionUID = 1L;
    private int code;
    private String msg;
    private long total;//总记录数
    private List<?> rows;//当前页结果

    public PageResult(long total, List<?> rows, String msg, int code) {
        super();
        this.total = total;
        this.rows = rows;
        this.msg = msg;
        this.code = code;
    }

    public static long getSerialversionUID() {
        return serialversionUID;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
